package com.cj.MyServices;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cj.Mapper.BooksMapper;
import com.cj.MyAnnotations.GET;
import com.cj.MyAnnotations.MethodName;
import com.cj.models.BookModel;
import org.springframework.stereotype.Service;

@Service
public class BookService extends ServiceImpl<BooksMapper, BookModel> implements IBook{

    @GET
    @MethodName("test")
    public Object test(){
        QueryWrapper<BookModel> queryWrapper = new QueryWrapper<BookModel>();
        queryWrapper.last("limit 10");
        return this.list(queryWrapper);
    }
}
